package base.enumtest;


public class EnumTest1 {
	
	public static void main(String[] args) {
		EnumState state=EnumState.OFF;
		traverseFor(state);
	}
	public static void traverseFor(EnumState state){
		EnumState states[]=state.values();
		for(EnumState s:states){
			System.out.println(s+"~~"+s.ordinal());
		}
	}
}
